var EntityView_Instances = [];

function WebEntityView(id) 
{
    this.orientation = "";
    this.entityName = "";

    EntityView_Instances[id] = this;
}


// ----------------------------------------------------------------------------------------------------------
//                                      Funciones Externas
// ----------------------------------------------------------------------------------------------------------

function EntityView_Refresh(id, entityID) {
    var entityView = EntityView_Instances[id];
    var cont = document.getElementById(id);
    var response = EntityView.GetHTML(entityView.entityName, entityID, entityView.orientation);
    
    if ( (response.error) && (typeof(response.error) != "xml") )
        alert(response.error);
    else
        cont.innerHTML = response.value;
}    

function EntityView_Clean(id)
{
    var cont = document.getElementById(id);
    cont.innerHTML = "&nbsp";
}
